NDepend.API Documentation
BreakingPoint(Nullable<Debt>,AnnualInterest) Method
NDepend.TechnicalDebt Namespace > ExtensionMethodsDebtUsableInCQLinq Class > BreakingPoint Method : BreakingPoint(Nullable<Debt>,AnnualInterest) Method
The nullable estimated cost-to-fix a set of issues, it can be negative in case of debt-diff value.
The cost-to-not-fix per year a set of issue, it can be negative in case of annual-interest-diff value.
Gets the time point from now when the estimated cost-to-not-fix the debt will reach the estimated cost-to-fix the debt. This time point is named the breaking point.
Syntax

Parameters

debt
The nullable estimated cost-to-fix a set of issues, it can be negative in case of debt-diff value.
annualInterest
The cost-to-not-fix per year a set of issue, it can be negative in case of annual-interest-diff value.

Return Value

debt.Value.BreakingPoint(annualInterest) if debt is not null, else returns null.
Remarks
The breaking point is the debt divided by the annualInterest.
For example if the estimated cost-to-fix the debt is equal to 10 man-days, and the estimated cost-to-not-fix the debt is equal to 2 man-days per year (this is the annualInterest) then the breaking point is equal to 5 years from now.
Notice that a breaking point lower than a year means that during the next 12 monthes, it would be cheaper to fix the debt than not to fix it.
This method accepts AnnualInterest.Zero value for annualInterest, in which case it returns System.TimeSpan.System.TimeSpan.Zero.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsDebtUsableInCQLinq Class
ExtensionMethodsDebtUsableInCQLinq Members
Overload List
BreakingPoint Property